package tech.aistar.corejava.day10;

import java.util.Date;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:
 * @date 2019/7/26 0026
 */
public class StringDateDemo {
    public static void main(String[] args) {
        //Date - > String
        System.out.println(String.format("%tF",new Date()));//2019-07-26

        System.out.println(String.format("%tT",new Date()));//14:24:46
    }
}
